//
//  XMAlbumSubCell.h
//  XiaoMiao
//
//  Created by 23 on 2018/1/28.
//  Copyright © 2018年 smallyou. All rights reserved.
//

#import <UIKit/UIKit.h>
@class XMAlbumSubsubModel;
@class XMAlbumSubCell;

typedef NS_ENUM(NSUInteger, XMAlbumSubCellOperate) {
    XMAlbumSubCellOperateNone,
    XMAlbumSubCellOperateUpload,
    XMAlbumSubCellOperateJigsaw,
};

@protocol XMAlbumSubCellDelegate <NSObject>

- (void)albumSubCell:(XMAlbumSubCell *)cell didCellFold:(BOOL)isFload item:(XMAlbumSubsubModel *)item;

- (void)albumSubCell:(XMAlbumSubCell *)albumSubCell didSeletedAlbumImageModel:(AlbumImageModel *)model;

- (void)albumSubCell:(XMAlbumSubCell *)cell didScanImageModel:(AlbumImageModel *)model;



@end


@interface XMAlbumSubCell : UITableViewCell

/** 图库类型
    必须在 XMAlbumSubsubModel *item 之前传这个参数*/
@property(nonatomic,assign) XMAlbumSubType albumType;
/** <#Description#> */
@property (nonatomic, assign) XMAlbumSubCellOperate albumSubCellOperate;
///** 是否是更新（上传）操作, default is NO */
//@property (nonatomic, assign) BOOL isUpdataOperate;

// 删除回调
@property (nonatomic ,copy) void(^deleteBlock)(void);
// 查看备注回调
@property (nonatomic ,copy) void(^remarkBlock)(void);

/**数据模型*/
@property(nonatomic,strong) XMAlbumSubsubModel *item;
/**代理*/
@property(nonatomic,weak) id<XMAlbumSubCellDelegate> delegate;
/**数据模型*/
@property(nonatomic,strong) NSIndexPath *indexPath;



+ (CGFloat)topViewH;
@end
